home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-01-29 | 2.0 KB | 69 lines | [TEXT/MPS ] |
- ;
- ; File: ENETEqu.a - equates for the Ethernet driver
- ;
- ; Version 1.1a1
- ;
- ; Copyright 1987-1991 Apple Computer, Inc. All Rights Reserved
- ;
-
- ; Control codes.
-
- IF &TYPE('__IncludingENetEqu__') = 'UNDEFINED' THEN
- __IncludingENetEqu__ SET 1
-
- ENetSetGeneral EQU 253 ; Set "general" mode
- ENetGetInfo EQU 252 ; Get info
- ENetRdCancel EQU 251 ; Cancel read
- ENetRead EQU 250 ; Read
- ENetWrite EQU 249 ; Write
- ENetDetachPH EQU 248 ; Detach protocol handler
- ENetAttachPH EQU 247 ; Attach protocol handler
- ENetAddMulti EQU 246 ; Add a multicast address
- ENetDelMulti EQU 245 ; Delete a multicast address
-
- FirstENET EQU ENetDelMulti ; First ENET command
- LastENET EQU ENetSetGeneral ; Last ENET command
-
- ; ENET queue element standard structure: arguments passed in the CSParam area
-
- EProtType EQU $1C ; Offset to protocol type code {csParam}
- EMultiAddr EQU $1C ; Multicast address (EAddMulti,EDelMulti) {csParam}
-
- EHandler EQU EProtType+2 ; Offset to protocol handler
- EWDSPointer EQU EHandler ; WDS pointer (EWrite)
- EBuffPtr EQU EHandler ; Buffer pointer (ERead,EGetInfo)
- EKillQEl EQU EHandler ; QEl pointer (ERdCancel)
-
- EBuffSize EQU EBuffPtr+4 ; Buffer size (ERead,EGetInfo)
- EDataSize EQU EBuffSize+2 ; Actual data size (Eread)
-
-
- ;---------------------------------------
- ; Ethernet packet header
- ;---------------------------------------
-
- EDestAddr EQU 0 ; Offset to destination address
- ESrcAddr EQU 6 ; Offset to source address
- EType EQU 12 ; Offset to data link type
- EHdrSize EQU 14 ; Ethernet header size
-
- EMinDataSz EQU 46 ; Minimum data size
- EMaxDataSz EQU 1500 ; Maximum data size
- EAddrSz EQU 6 ; Size of an ethernet node address
-
-
- ;
- ; Errors and misc.
- ;
-
- eLenErr EQU -92 ; Length error ddpLenErr
- eMultiErr EQU -91 ; Multicast address error ddpSktErr
-
- EAddrRType EQU 'eadr' ; Alternate address resource type
-
- ;
- ; Link specific 'atlk' AGetInfo call
- ;
- ESpeed EQU 10000000 ; Link speed in bits/sec
-
- ENDIF ; ...already included